-- GENERATED SPELL FOR [Spectral Apprentice] --


function spell0_16389(pUnit, Event) --@Burning Brand,n/a--
pUnit:FullCastSpellOnTarget(29618,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16389', 10292, 1)
end

function Sorts_16389(pUnit, Event)
local choix_sorts_16389 = math.random(0, 0)
if choix_sorts_16389 == 0 then
pUnit:RegisterEvent('spell0_16389', 1, 1)
end
end

function mob16389_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16389', math.random(1500, 3000), 1)
end

function mob16389_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16389_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16389_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16389, 1, 'mob16389_Action')
RegisterUnitEvent(16389, 2, 'mob16389_Leave')
RegisterUnitEvent(16389, 3, 'mob16389_Kill')
RegisterUnitEvent(16389, 4, 'mob16389_Die')
